package com.ruoyi.jiaopei.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.ruoyi.jiaopei.domain.TbCurriculum;
import com.ruoyi.jiaopei.domain.vo.DayCurriculumVo;
import com.ruoyi.jiaopei.domain.vo.TbCurriculumVo;
import com.ruoyi.jiaopei.domain.bo.TbCurriculumBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 课程Service接口
 *
 * @author macy
 * @date 2024-04-03
 */
public interface ITbCurriculumService {

    /**
     * 查询课程
     */
    TbCurriculumVo queryById(Long id);
    Long selectCount(Wrapper<TbCurriculum> queryWrapper);

    /**
     * 查询课程列表
     */
    TableDataInfo<TbCurriculumVo> queryPageList(TbCurriculumBo bo, PageQuery pageQuery);

    /**
     * 查询课程列表
     */
    List<TbCurriculumVo> queryList(TbCurriculumBo bo);

    /**
     * 新增课程
     */
    Boolean insertByBo(TbCurriculumBo bo);

    /**
     * 修改课程
     */
    Boolean updateByBo(TbCurriculumBo bo);

    /**
     * 校验并批量删除课程信息
     */
    Boolean deleteWithValidByIds(List<Long> ids, Boolean isValid);


    List<DayCurriculumVo> queryDayList();
}
